<template>

	<view class="role-page">
		<view class="role-info">
			<view class="role-name">
				测试角色名称
			</view>
			<view class="role-scope">
				Role-Tesk-name
			</view>
			<view class="role-comment">
				说明: --
			</view>
			<view class="role-comment">
				创建人: <text class="blue-text" @click="clickCreateUser">管理员</text>
			</view>
			<view class="role-create-date">
				创建日期:
			</view>
		</view>
		<view class="role-create-info">
			<view class="role-create-info-li"></view>
			<view class="role-create-info-li"></view>
		</view>
		<view class="role-tabs">
			<wd-tabs v-model="tab">
				<block v-for="item in data.Tabs" :key="item">
					<wd-tab :title="item"></wd-tab>
				</block>
			</wd-tabs>
		</view>
		<api_auth_list></api_auth_list>
	</view>
</template>

<script setup>
	
	import api_auth_list from "../../components/api_auth_list/api_auth_list.vue";
	
	import {
		reactive,
		ref
	} from "vue"
	const tab = ref(0)

	const data = reactive({
		Tabs: ["接口权限", "操作权限", "菜单权限"],
		apiAuthList:[
			1,1,1,1,1,1,1,1,1,
		]
	})

	function clickCreateUser() {
		uni.navigateTo({
			url: "/pages/Mange/User/info/info"
		})
	}
</script>

<style>
	.role-page {
		padding-top: 40rpx;
		padding-bottom: 40rpx;
		background: rgb(20, 101, 227);
		background: linear-gradient(180deg, rgba(20, 101, 227, 0.3416289592760181) 7%, rgba(254, 254, 254, 1) 100%);
		margin: 0;
		box-sizing: border-box;
	}

	.role-info {
		padding: 0rpx 40rpx;
		padding-bottom: 30rpx;
		font-size: 26rpx;
		color: gray;
	}

	.role-name {
		margin-bottom: 10rpx;
		font-size: 34rpx;
		color: #000;
	}

	.role-comment,
	.role-scope {
		margin-bottom: 10rpx;
	}

	.blue-text {
		color: blue;
		text-decoration: underline
	}
	
	.role-create-info{
		width:90%;
		margin-left: 5%;
		display: flex;
		justify-content: space-between;
		margin-bottom: 30rpx;
	}
	.role-create-info-li{
		height: 100rpx;
		border-radius: 15rpx;
		background-color: #75727238;
		width: 45%;
	}
	
	.role-tabs{
		width:90%;
		margin-left: 5%;
		margin-bottom: 30rpx;
		border-radius:15rpx;
		overflow: hidden;
	}
	
	
	.api-auth-list{
		border-radius:15rpx;
		overflow: hidden;
		width:90%;
		margin-left: 5%;
		display: flex;
		flex-direction: column;
	}
	.api-auth-list-li{
		display: flex;
		flex-direction: column;
		padding: 22rpx 30rpx;
		background: white;
		border-bottom: 1rpx solid #c3c3c344;
	}
	.api-auth-list-li-header{
		display: flex;
		align-items: center;
		gap: 18rpx;
	}
	.api-auth-list-li-content{
		color: gray;
		font-size: 22rpx;
	}
</style>